<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Models\YaoDivination;

class ChatRecordsResource extends JsonResource
{
    public function toArray($request)
    {
    	$resource = $this->resource;
    	
        
        return [
        	'id' => (int)$resource->id,
	        'session_id'=>$resource->session_id,
            'content'=>$resource->content,
	        'created_at' => (string)$resource->created_at,
        ];
    }
}
